<div class="path"><i class="iconfont">&#xf108;</i>  <a href="{url('admin/default/welcome')}">开始</a> {$sitename} / <a href="{url('channel/index')}">栏目管理</a>{$path}</div>
<div class="m10">
<div class="table-head"><a href="{url('channel/index',array('id'=>$pid))}" class="button"> <i class="iconfont">&#xf053;</i> 返回</a><strong>添加栏目</strong></div>
<form id="form" action="{url('channel/edit')}">
<input type="hidden" name="fid" value="{$fid}"/>
<input type="hidden" name="pid" value="{$info['pid']}"/>
<input type="hidden" name="exts_mid" value="{$info['exts_mid']}" />
<table class="table">
    <tr><th>栏目类型:</th><td>
        <select class="select" name="type">
          <option value="0" {if $info['type'] == 0}selected{/if}>资源列表--[添加内容]</option>
          <option value="1" {if $info['type'] == 1}selected{/if}>网站频道--[禁止内容]</option>
          <option value="2" {if $info['type'] == 2}selected{/if}>栏目跳转--[直接跳转]</option>
        </select>
    </td></tr>
    <tr><th>栏目名称:</th><td><input id="name" class="input" datatype="*" type="text" name="name" value="{$info['name']}" /></td></tr>
    <tr><th>栏目URL:</th><td><input class="input w300" type="text" name="url" id="url" value="{$info['url']}"/> <input url="{url('channel/linkurl',array(id=>'url'))}" title="站内链接选择" value="站内链接" type="button" class="button win" /></td></tr>
    <tr><th>前台是否显示:</th><td>显示: <input {if $info['locks']}checked="checked"{/if} class="radio" type="radio" name="locks" value="1"> 不显示: <input{if !$info['locks']} checked="checked" {/if} class="radio" type="radio" name="locks" value="0"></td></tr>
    <tr><th>栏目模板:</th><td><input class="input w200" name="tpl_list" id="tpl_list" type="text" value="{$info['tpl_list']}" /><input url="{url('admin/tpl/index',array(id=>'tpl_list'))}" title="模板选择" value="模板选择" type="button" class="button win" /></td></tr>
    <tr><th>内容模板:</th><td><input class="input w200" name="tpl_content" id="tpl_content" type="text" value="{$info['tpl_content']}" /><input url="{url('admin/tpl/index',array(id=>'tpl_content'))}" title="模板选择" value="模板选择" type="button" class="button win" /></td></tr>
{if $info['plus_mid']}
    <tr><th>附加模型模板:</th><td><input class="input w200" name="tpl_plus" id="tpl_plus" type="text" value="{$info['tpl_plus']}" /><input url="{url('admin/tpl/index',array(id=>'tpl_plus'))}" title="模板选择" value="模板选择" type="button" class="button win" /></td></tr>
{/if}
    {loop $module $vo}
    <tr><th>{$vo['title']}:</th><td>{$vo['input']}</td></tr>
    {/loop}
</table>
<div class="btn fn-tac">
    <a href="{url('channel/index',array('id'=>$pid))}" class="button"> <i class="iconfont" title="模型列表">&#xf053;</i> 返回</a>
    <input type="submit" value="确定保存" class="button button-blue" />
    <input type="reset" value="重置" class="button button-yellow" />
</div>
</form>
</div>
<script type="text/javascript">
Do('base','dialog','form',function(){ 
    $('#form').forms();
    $(".win").click(function(){$(this).win();});
})      
</script>